// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

.chat-conversation-list {
  width: 270px;
  overflow-y: auto;
  // not needed for inertial scrolling but draws the scrollbar in front of the icons when scrolling on mobile safari.
  -webkit-overflow-scrolling: touch;

  @media @desktop {
    padding: 0 0 10px;
  }

  @media @mobile {
    display: flex;
    width: 100vw;
    overflow-x: auto;
  }

  &__group {
    @media @mobile {
      display: flex;
    }
  }

  &__header {
    display: flex;
    gap: 5px;

    background: hsl(var(--hsl-b5));
    color: hsl(var(--hsl-c1));
    padding: 10px 30px;
    font-size: @font-size--normal;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1; // keep above items

    @media @mobile {
      padding: 5px;
    }
  }

  &__header-text {
    text-transform: uppercase;

    @media @mobile {
      display: none;
    }
  }

  &__header-icon {
    @media @mobile {
      align-self: center;
    }
  }

  &__layer {
    .own-layer();

    @media @mobile {
      display: flex;
      flex-direction: row;
    }
  }
}
